<!--右侧内容-->   
    <div id="fy_right">
    	<div class="cle"></div><!--清除浮动-->
        <div class="r_list" style="margin-top:0px;margin-bottom:20px;">
        	<h4 class="tit">文章分类</h4>
			{pc:content action="category" catid="6" order="listorder asc"}
			{loop $data $r}
				<p class="zx_xhx" style="padding-left:30px;"><a href="{$r[url]}" {if $catid==$r[catid]}style="color:#f00;"{/if}>{$r[catname]}</a></p>
			{/loop}
			{/pc}
        	
            <div class="cle"></div><!--清除浮动-->                                                                                </div>
    	<div id="c_sqzx">
            <h3 class="tit3">10秒提交装修需求<br><em>立领4份设计方案，4份详细报价！</em></h3>
            <form method="post" name="formbid" id="form">
            <ul>
                <li><input name="username" id="username" type="text" class="sq_bk_class" value="您的称呼" onblur="if (this.value=='') this.value='您的称呼';" onfocus="if (this.value=='您的称呼') this.value='';"></li>
	            <li>
					<input name="phone" id="phone" type="text" class="sq_bk_class" value="您的电话" onblur="if (this.value=='') this.value='您的电话';" onfocus="if (this.value=='您的电话') this.value='';">
				</li>
	            <li>
					<input name="area" id="area" type="text" class="sq_bk_class" value="地区" onblur="if (this.value=='') this.value='地区';" onfocus="if (this.value=='地区') this.value='';">
	                &nbsp; 
	                <input name="fee" id="tellphone" type="text" class="sq_bk_class" value="预算" onblur="if (this.value=='') this.value='预算';" onfocus="if (this.value=='预算') this.value='';">
            	</li>
				<input type="hidden" name="dosubmit" value="1">
                <input type="hidden" name="ip" value="{ip()}">
                <li class="tijiao1"><a class="sq_btn" href="javascript:;">立即申请</a></li>
            </ul>
            </form>
        </div>
        <div class="cle"></div><!--清除浮动-->
        <div class="r_list_lx" id="r_list_lx">
			<ul class="slide_box">
			{pc:content action="lists" catid="3" order="rand()" num="1"}
			{loop $data $r}
				<li>
					<a href="{$r[url]}" target="_blank">
						<img width="300" height="220" alt="" src="{$r[thumb]}" draggable="false">
						<span style="display: inline;"></span>
						<p class="cengzi">{str_cut($r[title],40)}</p>
						<p class="zeceng"></p>
					</a>
				</li>
				<div class="cle"></div><!--清除浮动-->
			{/loop}
			{/pc}
			</ul>
			<ul class="flex-direction-nav">
				<li class="flex-nav-prev"><a class="flex-prev" href="javascript:;">Previous</a></li>
				<li class="flex-nav-next"><a class="flex-next" href="javascript:;">Next</a></li>
			</ul>
		</div>
        
        <div class="cle"></div><!--清除浮动-->
        <div class="r_list">
        	<h4 class="tit">其它精彩文章</h4>
            <ul class="zxgs_ph">
				{pc:content action="lists" catid="6" order="rand()" num="6"}
				{loop $data $r}
				<li><a href="{$r[thumb]}" target="_blank" title="{$r[title]}">{str_cut($r[title],40)}</a></li>
				{/loop}
				{/pc}
            </ul>
        </div>
        <!--
        <div class="r_list">
        	<h4 class="tit">相关标签</h4>
            <p class="xgbq">
            	<a href="#">3分钟学装修</a>
                <a href="#">装修风格</a>
                <a href="#">3分钟学装修</a>
                <a href="#">3分钟学装修</a>
                <a href="#">马上去提问</a>
                <a href="#">3分钟学装修</a>
    			<div class="cle"></div>
            </p>
        </div>
        -->
    </div>
<script src="/statics/layui/layui.js"></script>
<script>
    $("#code").focus(function(){
        $(".myform").css('display','block')
    });
    $("#code").blur(function(){
        $(".myform").css('display','none')
    });
    layui.use(['form','layer'],function(){
        $('.tijiao1').click(function () {
            $.ajax({
                url:'index.php?m=webman&c=liuyan&a=add',
                type:'post',
                data:$('#form').serialize(),
                success:function(msg){
                    if(msg=='ok'){
                        layer.msg('提交成功，谢谢！',{icon:1}, function () {
                            location.reload()
                        });

                    }else if(msg=='fail'){
                        layer.msg('提交失败，请联系管理员',{icon:2});
                    }else{
                        layer.msg(msg,{icon:2})
                    }
                }
            })
        });
        $('.tijiao2').click(function () {
            $.ajax({
                url:'index.php?m=webman&c=liuyan&a=add',
                type:'post',
                data:$('#form2').serialize(),
                success:function(msg){
                    if(msg=='ok'){
                        layer.msg('提交成功，谢谢！',{icon:1});
                        location.reload()
                    }else if(msg=='fail'){
                        layer.msg('提交失败，请联系管理员',{icon:2});
                    }else{
                        layer.msg(msg,{icon:2})
                    }
                }
            })
        })
    })
</script>